﻿using System;
using System.Collections.Generic;
using System.Text;

namespace MapReduce.Utils
{
    public class JobStatus
    {
        public const String FREE = "0";
        public const String BUSY = "1";

        public const byte READY = 0;
        public const byte SENT = 1;
        public const byte DONE = 2;

        public byte Status;
        public String Address;
        public ushort Port;
        public String Key;
        public Object Value;
        public JobStatus() { }

        public JobStatus(byte pStatus, String pAddress, ushort pPort, String pKey, Object pValue)
        {
            Status = pStatus;
            Address = pAddress;
            Port = pPort;
            Key = pKey;
            Value = pValue;
        }

    }
}
